package com.jxs.android.weiget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;

import com.telecom.weixi.R;

public class BuSalesView extends LinearLayout {

	private LinearLayout scroll_view_title, scroll_view_extends;

	public BuSalesView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public BuSalesView(Context context) {
		this(context, null);
		init(context);
	}

	private void init(Context context) {
		LayoutInflater.from(context).inflate(R.layout.bu_sales_table, this);
		scroll_view_extends = (LinearLayout) findViewById(R.id.scroll_view_extends);
		scroll_view_title = (LinearLayout) findViewById(R.id.scroll_view_title);
	}

	public void addContent(BuSalesItem buSalesItem) {
		scroll_view_extends.addView(buSalesItem);
	}

	public void addTitle(BuSalesItem buSalesItem) {
		scroll_view_title.addView(buSalesItem);
	}

}
